//熊猫优选首页
$color:#fee44e;

// 顶部欢迎栏
#header {
    height: 100px;
    padding: 20px 0px;
    text-align: center;
    border-bottom: 3px solid rgba($color: #c0b4b4, $alpha: .5);

    .container {
        padding: 10px 0px;

        img,
        span {
            float: left;
        }

        // logo
        .panda {
            float: left;

            margin-left: 20px;
            margin-top: 10px;

            h2 {
                font-size: 30px;
                font-weight: 700;
            }

            p {
                font-size: 12px;
            }
        }

        // 搜索框
        .search {
            float: left;
            width: 500px;
            height: 50px;
            position: relative;
            border: 1px solid rgb(181, 180, 180);
            margin: 14px auto;
            border-radius: 25px;
            margin-left: 145px;

            input {
                width: 88%;
                height: 96%;
                border: none;
                outline: none;
                padding-left: 10%;
                border-radius: 25px;
            }

            span {
                position: absolute;
                top: 7px;
                left: 6px;
                color: rgb(0, 0, 0);
                font-size: 34px;
            }

            div {
                background-color: $color;
                width: 120px;
                height: 50px;
                line-height: 48px;
                border-radius: 24px;
                position: absolute;
                top: 0px;
                right: 0px;
            }

        }

        //右边品质

        .shopRelevent {
            width: 280px;
            justify-content: space-between;
            align-items: center;
            // padding-left: 70px;


            .shop {
                display: flex;

                li {
                    width: 25%;
                    font-size: 12px;
                    display: flex;
                    flex-direction: column;
                    justify-content: space-between;
                    color: #999;
                }

                span {
                    color: #ff8383;
                    font-size: 12px;
                }

                .text {
                    margin: 0;
                    font-size: 34px;

                }
            }




        }

        //登录提示
        .login {
            margin-top: 25px;

            span {
                font-size: 14px;
                margin-left: 12px;
            }

            span:first-child {
                color: rgb(195, 10, 10);
            }
        }


    }

    .container>img {
        width: 80px;
        height: 80px;
    }
}



// 导航栏
#nav {
    background: #1f1206;
    height: 45px;

    .container {
        color: #fff;

        li {
            float: left;
            width: 202px;
            text-align: center;
            line-height: 45px;
            font-size: 16px;

            a {
                color: #fff;
            }

            &:hover {
                background: $color;
            }
        }

    }
}

//主体


#main {
    background: rgb(244, 243, 243);
    padding-bottom: 10px;

    .container {
        background: rgb(255, 255, 255);
        border: 1px solid rgb(239, 239, 239);
        border-top: 0;

        .smallPic .on {
            display: block;
        }

        .left .active {
            border: 1px solid $color;
        }

        .right .active {
            border: 1px solid $color;
        }

        .left {
            position: relative;
            float: left;

            .showBox {
                width: 350px;
                height: 350px;
                overflow: hidden;

                li {
                    width: 350px;
                    height: 350px;
                    // display: none;
                }

                img {
                    width: 350px;
                    height: 350px;
                    vertical-align: top;
                }
            }

            .mask {
                width: 120px;
                height: 120px;
                position: absolute;
                top: 0;
                left: 0;
                background: rgba($color: #b6a8a8, $alpha: .5);
                display: none;
                pointer-events: none;
            }

            .tab {
                width: 320px;
                height: 60px;
                display: flex;
                justify-content: space-between;
                padding-left: 30px;
                padding-top: 10px;

                li {
                    float: left;

                    img {
                        width: 50px;
                    }
                }
            }
        }

        .right {
            position: relative;
            float: left;
            width: 420px;
            height: 420px;



            .bigPic {
                position: relative;
                width: 100%;
                height: 100%;
                overflow: hidden;
                display: none;

                .show {
                    position: absolute;
                    left: 0;
                    top: 0;
                    z-index: 1;
                    img {
                        width: 100%;
                        height: 100%;
                    }
                }


                li {
                    float: left;
                    overflow: hidden;
                }
            }
        }


        .description {
            position: absolute;
            left: 0;
            top: 0;
            width: 560px;
            height: 400px;
            margin-left: 10px;
            // padding-top: 10px;
            // padding-left: 20px;
            padding: 10px 20px 0px;

            p,
            div {
                margin-bottom: 15px;
                padding: 0px 10px;
                font-size: 12px;
                color: #999;

            }

            p:nth-child(1) {
                font-size: 20px;
            }

            p:nth-child(2) {
                width: 98%;
                height: 40px;
                line-height: 40px;
                font-size: 14px;

                display: flex;
                justify-content: space-between;
                background: linear-gradient($color, white);


                span:nth-child(1) {
                    font-size: 18px;
                    color: rgb(241, 59, 59);
                    font-weight: 700;
                }
            }

            p:nth-child(3) {

                span {
                    font-size: 16px;
                    color: rgb(241, 59, 59);
                    margin-left: 20px;
                }
            }

            div:nth-child(4) {

                display: flex;
                align-items: center;
                margin-bottom: 30px;

                button,
                input {
                    width: 40px;
                    height: 25px;
                    outline: none;
                    border: none;
                    text-align: center;
                    color: #999;
                }

                button:first-child {
                    margin-left: 20px;
                    border-top-left-radius: 4px;
                    border-bottom-left-radius: 4px;
                }

                button:last-child {
                    margin-right: 20px;
                    border-top-right-radius: 4px;
                    border-bottom-right-radius: 4px;

                }

                input {
                    height: 21px;
                    border-top: 1px solid rgb(205, 201, 201);
                    border-bottom: 1px solid rgb(205, 201, 201);
                }


            }

            .purchase {
                span:first-child {
                    padding: 10px 30px;
                    background: linear-gradient(-45deg, $color, #fff);
                    margin-right: 20px;
                    color: rgb(183, 179, 179);
                }

                span:last-child {
                    padding: 10px 30px;
                    background: $color;
                    color: #fff;


                }
            }

        }

        .store {
            width: 190px;
            height: 340px;
            padding: 40px 20px;
            background: linear-gradient($color, #fff, $color, #fff);
            border: 1px solid $color;
            border-bottom: 0px solid $color;
            text-align: center;
            color: #999;

            p {
                margin-top: 20px;
                margin-bottom: 20px;

            }

            ul {
                display: flex;
                justify-content: space-between;
                margin-top: 20px;

                li {
                    width: 80px;
                    height: 60px;
                    line-height: 60px;
                    background: #fff;
                    margin-right: 2px;
                    border: 1px solid $color;

                    span {
                        color: #ff8383;
                    }
                }
            }

            .enter {
                margin-top: 20px;
            }

            dl {
                color: #666;

                h3 {
                    margin-top: 20px;
                    margin-bottom: 10px;
                }

                img {
                    width: 45px;
                    height: 45px;
                }

                dd {
                    color: #ff8383;
                    margin-top: 10px;
                }
            }
        }


    }

    #productNav {

        border-top: 1px solid rgb(221, 221, 221);
        border-bottom: 1px solid rgb(221, 221, 221);
        background: rgb(242, 240, 240);


        ul {
            background: rgb(242, 240, 240);

            height: 60px;
            border: 0px solid #000;

            li:first-child {
                background: linear-gradient($color, white);

            }

            li {
                float: left;
                width: 140px;
                text-align: center;
                line-height: 60px;
                border-radius: 5px;

                &:hover {
                    background: linear-gradient($color, white);
                }
            }
        }

    }

    .display {
        width: 100%;
        text-align: center;

        img {
            margin-top: 10px;
            width: 600px;
            height: 600px;
        }
    }

    // 加载更多
    .loadMore {
        width: 150px;
        height: 45px;
        line-height: 45px;
        text-align: center;
        background: $color;
        border-radius: 28px;
        margin: 10px auto 0px;
    }
}